import { ILoginRestProps } from "../type"

export const getCityName = () => ({
    type: 'common/getCity',
})
export const setPositionCity = (payload: string) => ({
    type: 'common/setCityName',
    payload
})
export const setCityHistorySearch = (payload) => (
    {
        type: 'common/setCityHistoryList',
        payload
    }
)

export const wxPhoneLogin = (payload: ILoginRestProps) => ({
    type: 'common/wxLoginMet',
    payload
})
export const initUserLoginStatus = (payload: string) => ({
    type: 'common/initUserState',
    payload
})

export const setInviterId = (payload: string) => ({
    type: 'common/setInviteId',
    payload
})


export const initUserInfo = () => ({ type: 'common/getPtUserInfo' })
export const logoutMet = () => ({ type: 'common/logout' })
export const updatePtUserInfo = (payload) => ({
    type: 'common/updatePtUserInfo',
    payload
})
export const selectStoreList = (param: { id: number, name: string }) => ({
    type: 'common/selectStore',
    payload: param
})

export const interValUpdateAdmissionRecord = () => ({ type: 'common/updateAdmissionRecord' })

export const updateUserAssetsData = () => ({
    type: 'common/updateUserAssets'
})